package com.cy.wenxinapi.service;

import com.cy.wenxinapi.entity.InterviewRecode;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cy.wenxinapi.util.R;
import com.cy.wenxinapi.util.Result;
import com.cy.wenxinapi.vo.InterviewParamsVo;
import com.cy.wenxinapi.vo.QAstr;

/**
* @author c
* @description 针对表【interview_recode】的数据库操作Service
* @createDate 2024-02-26 11:13:04
*/
public interface InterviewRecodeService extends IService<InterviewRecode> {

    String generateInterviewID(InterviewParamsVo vo);

    void commitquestionAnswer(InterviewRecode interviewRecode);

    Result getOverallRating(String interviewID);

    Result updateQuestionAnswer(InterviewRecode interviewRecode);

    R getResult(String msg,String interviewId);

    void getResultUpdate(String jsonString, String interviewId);

    Result getQuestionForInterview(String interviewId) throws InterruptedException;

    Result getInterviewList();

    Result getInterviewResult(QAstr interviewId);

    Result getBestAnswer(String question, String interviewId);

    Result getInterviewerAnswer(String question, String interviewId);
}
